#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QObject::connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(processSlot()));
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::processSlot()
{
    int majorVersion = ui->spinBox->value();
    int minorVersion = ui->spinBox_2->value();
    int revVersion = ui->spinBox_3->value();

    int titleVersion = 0;

    titleVersion += majorVersion * 1024;
    titleVersion += minorVersion * 16;
    titleVersion += revVersion;

    ui->textEdit->setText(QString::number(titleVersion));
}
